package com.buddy.learn.javasource._class._extend;

/**
 * @author Buddy
 * @date 2021/6/2
 */
public class Child extends Parent {

    static {
        System.out.println("A2");
    }

    {System.out.println("B2");}

    public Child() {
        System.out.println("C2");
    }

    @Override
    public String toString() {
        return "D2.toString";
    }
}
